package com.yubest.springboothello.dto;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author: hweiyu
 * @Date: 2023/4/13 9:20
 */
@Data
@Accessors(chain = true)
@JacksonXmlRootElement(localName = "xmlRespDto")
public class XmlRespDto<T> {

    @JacksonXmlProperty(localName = "code")
    private Integer code;

    private String msg;

    private T data;
}
